package net.zdsoft.wpchat.support.action.frame;

import java.util.List;

import net.zdsoft.wpchat.android.client.BasicAction;
import net.zdsoft.wpchat.support.entity.UserCatalog;

/**
 * 后台框架页面Action
 * 
 * @author xuan
 * @version $Revision: 1.0 $, $Date: 2014-9-22 下午8:27:21 $
 */
public class FrameAction extends BasicAction {
    private static final long serialVersionUID = 8863181830593946593L;

    private List<UserCatalog> mainMenu;

    /**
     * 后台首页
     * 
     * @return
     */
    public String index() {
        return SUCCESS;
    }

    /**
     * 后台主界面页
     * 
     * @return
     */
    public String mainMenu() {
        mainMenu = getSupportMemoryUser().getUserConfig().getUserCatalogs();
        return SUCCESS;
    }

    /**
     * 后台欢迎页
     * 
     * @return
     */
    public String welcome() {
        return SUCCESS;
    }

    public List<UserCatalog> getMainMenu() {
        return mainMenu;
    }

    public void setMainMenu(List<UserCatalog> mainMenu) {
        this.mainMenu = mainMenu;
    }

}
